]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Fix TypeError when user is deleted
authorMichael Catanzaro <mcatanzaro@igalia.com>
Mon, 23 Nov 2015 23:21:49 +0000 (17:21 -0600)
committerMichael Catanzaro <mcatanzaro@igalia.com>
Mon, 23 Nov 2015 23:44:49 +0000 (17:44 -0600)
LoginDialog has a private _user, but UserListItem has a public user.
Easy to get wrong since _user would be the right thing to type in 90% of
this file.

js/gdm/loginDialog.js

index b400d7982b45bc960c9e5877743163fa16f13bd9..4150649abab19eadec938a8133e4e41b186dab98 100644 (file)
@@ -96,7 +96,7 @@ const UserListItem = new Lang.Class({
     },
 
     _onDestroy: function() {
-        this._user.disconnect(this._userChangedId);
+        this.user.disconnect(this._userChangedId);
     },
 
     _onClicked: function() {